package day20;

import java.util.Scanner;

//字符串反转
public class oj1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        char[] ch = str.toCharArray();
        int left = 0;
        int right = ch.length - 1;
        while(left < right) {
            char tmp = ch[left];
            ch[left] = ch[right];
            ch[right] = tmp;
            left++;
            right--;
        }
        System.out.println(String.valueOf(ch));
    }
}
